using System.Linq;
using SuCasa.Controllers;
using SuCasa.Infrastructure;
using SuCasa.Models;

namespace SuCasa.DataAccess{
    public class FakeCallLogRepository : ICallLogRepository {
        public bool AddCallLog(CallLog callLog){
            FakeDb.AllCallLogs.ToList().Add(callLog);
            return true;
        }

        public CallLogViewModel GetCallLogsByMember(Member member){
            return new CallLogViewModel(member, FakeDb.AllCallLogs);
        }
    }
}